package com.csproj.dispatch.resource;

import com.codahale.metrics.annotation.Timed;
import com.csproj.dispatch.service.DispatchRouteService;
import com.csproj.siiat.base.common.dto.BaseDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * REST controller for managing DispatchRoute.
 * 路径信息controller
 */
@RestController
@RequestMapping("/api/center/drr")
public class DispatchRouteResource {

    private final Logger log = LoggerFactory.getLogger(DispatchRouteResource.class);

    private static final String ENTITY_NAME = "dispatchRoute";

    private final DispatchRouteService dispatchRouteService;

    public DispatchRouteResource(DispatchRouteService dispatchRouteService) {
        this.dispatchRouteService = dispatchRouteService;
    }

    /**
     * 创建路径
     * @return
     */
    @PostMapping("/route")
    @Timed
    public BaseDTO createDispatchRouteResource(){

        return null;
    }

}